<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
	response.setHeader("Cache-Control", "no-cache");
	response.setHeader("Pragma", "no-cache");
	response.setDateHeader("Expires", 0);
%>

<html>
<head>
<title><s:text name="app.title" /></title>

<link href="<s:url value="/css/menuLateral.css"/>" rel="stylesheet"
	type="text/css" />
	

<script type="text/javascript" src="${pageContext.request.contextPath}/js/menuLateral.js"></script>

<link href="<s:url value="/css/tabela.css"/>" rel="stylesheet"
	type="text/css" />
	

<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.tablesorter.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.tablesorter.pager.js"></script>
<script type="text/javascript">
$(document).ready(function() { 
    $("#myTable") 
    .tablesorter({widthFixed: true, widgets: ['zebra']}) 
    .tablesorterPager({container: $("#pager")}); 
});     
</script>

</head>

<body>

<div class="cabecalho">

<s:a action="home" namespace="/menu"><s:text name="app.title"/></s:a>
</div>
<div class="busca">
<form action="busca" method="get">

<s:textfield name="stringBusca" size="32" label="Busca" labelposition="left"/>
<input type="submit" value="buscar">
</form>
</div>
<div>
<a href="<s:url value="/usuario/listar.action" />"><s:text name="Listar.Usuarios"/></a>
</div>
<div class="loginDiv" align="right">
<IFRAME name=loginIframe src="/Leilao/login/check.action" frameBorder=0 width=280 height=50 scrolling=auto></IFRAME>
</div>
<div class="sidebarmenu">

<ul id="sidebarmenu1">
	<s:iterator value="#application.estilosNivel0" var="estiloNivel0">
	
		<s:url var="url0" action="list" namespace="/album" ><s:param name = "idEstilo" value = "#estiloNivel0.id" /></s:url>
		<li><a href="<s:property value="#url0" />"><s:property value="#estiloNivel0.nome" /></a> 
		
		<s:action name="subMenu" namespace="/menu" executeResult="false">
			<s:param value="#estiloNivel0.id" name="idEstilo0" />
		</s:action> 
		
		<s:if test="#attr.estilosNivel1">
		
			<ul>	
				<s:iterator value="#attr.estilosNivel1" var="estiloNivel1">
				<s:url var="url1" action="list" namespace="/album" ><s:param name = "idEstilo" value = "#estiloNivel1.id" /></s:url>
					<li><a href="<s:property value="#url1" />"><s:property value="#estiloNivel1.nome" /></a>
					
					<s:action name="subMenu2" namespace="/menu" executeResult="false">
						<s:param value="#estiloNivel1.id" name="idEstilo1" />
					</s:action> 
					
					<s:if test="#attr.estilosNivel2">
					
						<ul>						
						 	<s:iterator value="#attr.estilosNivel2" var="estiloNivel2">
						 	
						 		<s:url var="url2" action="list" namespace="/album" ><s:param name = "idEstilo" value = "#estiloNivel2.id" /></s:url>
						 		<li><a href="<s:property value="#url2" />"><s:property value="#estiloNivel2.nome" /></a></li>
						 	</s:iterator>					
						 </ul>
					 
					</s:if>
					</li>
				</s:iterator>
			</ul>
		</s:if>
		</li>
	</s:iterator>
</ul>

</div>


